<template>
  <ul>
    <!--获取params参数-->
    <li>消息编号：{{$route.params.id}}</li>
    <li>消息标题：{{$route.params.title}}</li>
  </ul>
</template>

<script>
export default {
    name: 'Detail',
    mounted() {
        //路由上的params参数会被放到$route.params中
        console.log('Detail组件获取params参数 ', this.$route)
    }
}
</script>

<style scoped>

</style>